package com.power.sifa.correction.api;

import com.plf.common.domain.ResponseDTO;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;
import com.power.sifa.correction.model.Crw_rule_disabled;
import com.power.sifa.correction.model.pageInfo.Crw_rule_disabledPageInfo;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 *  人员-屏蔽规则 Feign
 */
public interface ICrw_rule_disabledFeign {

    /**
     * 人员-屏蔽规则分页列表
     */
    @PostMapping("/crw_rule_disabled/list")
    ResponseDTO list(@RequestBody Crw_rule_disabledPageInfo crw_rule_disabledPageInfo);

    /**
    * 查看人员-屏蔽规则
    */
    @GetMapping("/crw_rule_disabled/view")
    ResponseDTO view(@RequestParam("id") String id);

    /**
    * 删除人员-屏蔽规则
    */
    @PostMapping("/crw_rule_disabled/delete")
    ResponseDTO delete(@RequestParam("id") String id);

    ///**
    // * 查看人员-屏蔽规则 复合主键使用
    // */
    //@PostMapping("/crw_rule_disabled/viewByPK")
    //ResponseDTO viewByPK(@RequestBody Crw_rule_disabled.Crw_rule_disabledPK pk);

    /**
     * 修改或保存人员-屏蔽规则
     */
    @PostMapping("/crw_rule_disabled/save")
    ResponseDTO save(@RequestBody Crw_rule_disabled  crw_rule_disabled);

    ///**
    // * 删除人员-屏蔽规则 复合主键使用
    // */
    //@PostMapping("/crw_rule_disabled/deleteByPK")
    //ResponseDTO deleteByPK(@RequestBody Crw_rule_disabled.Crw_rule_disabledPK pk);
    
    /**
     * 批量删除人员-屏蔽规则
     */
    @PostMapping("/crw_rule_disabled/batchDel")
    ResponseDTO batchDel(@RequestParam("ids") String ids);
    
     /**
     * 导出excel
     */
    @PostMapping("/crw_rule_disabled/output")
    void output(HttpServletResponse response, @RequestBody Crw_rule_disabledPageInfo crw_rule_disabledPageInfo);
        
     /**
     * 导出excel模板
     */
    @PostMapping("/crw_rule_disabled/exportExcelTemplate")
    void exportExcelTemplate(HttpServletResponse response);
    
     /**
     *	导入excel
     */
    @PostMapping("/crw_rule_disabled/importExcel")
    ResponseDTO importExcel(@RequestBody MultipartFile file) throws IOException ;
    
}
